#include <stdio.h>
#include <string>
#include "SConfig.h"
int main(int argc, char *argv[])
{
    SConfig cnf;
    cnf.ParseFile("/etc/my.cnf");
	int port;
//	float host;
	char *user;
	cnf.GetConfigInt("http_port", port);
//	cnf.GetConfigFloat("db_host", host);
	cnf.GetConfigString("db_user", &user);
	printf("%d\n", port);
	printf("%s\n", user);
    //cnf.print_conf();
    return 0;
}
